"use strict";

var util = require('util');
var BaseFilter = require('./FilterBase.js');
var vocabulary = require('./wordPrep.json');
/**
 * 过滤介词
 * @constructor
 */
function FilterPrep(__isDebug) {
  this.__isDebug = __isDebug;
  this.__passed = [];
  this.__blocked = [];
  this.init(vocabulary.acceptList, vocabulary.rejectList);
  this.prep1 = "当从往比拿以为对跟同从自于打到往在当朝向被叫让给按照依以凭因对把向跟与同给除";
}
util.inherits(FilterPrep, BaseFilter);
module.exports = FilterPrep;

var theProto = FilterPrep.prototype;

/**
 * 首字母是 给定副词
 * @param str
 * @returns {boolean}
 */
theProto.detailFilter = function (str) {
  if (this.prep1.indexOf(str.charAt(0)) >= 0) {
    return false;
  }
  return true;
};